In Azure Resource Manager (ARM) templates, it is possible to set allowedValues
for various parameters to limit the options and
maintain control. However, when it comes to a parameter defining the location
of a resource, this practice can lead to a code smell.
Specifically, setting allowedValues
for a location parameter can cause issues because the locations list might not be exhaustive or
suitable for all users. Users may be unable to deploy such a template if their desired location is not included in the allowedValues
,
causing inconvenience and potential delays in their work.